<template>
    <div>
        <h1>我是子组件{{val}}</h1>
        <sun v-bind="$attrs" v-on="$listeners"></sun>
    </div>
</template>
<script>
import sun from './sun.vue'
export default {
    props:['val'],
    components:{
        sun
    }
}
</script>